import { createApp } from 'vue';
import eruda from 'eruda';

import store from '@/store/store';

import App from './App.vue';
import router from './router';
import { setDomFontSize } from './utils/flexible';

const app = createApp(App);

if (import.meta.env.VITE_ENV !== 'prod' && import.meta.env.VITE_ENV !== 'dev') {
  eruda.init();
}

app.use(router);
app.use(store);
app.mount('#app');

// 设置html字体大小
setDomFontSize();
